#!/bin/bash
echo -n "please input a directory:"
read dir
if [ -d $dir ];then 
echo "$dir is a directory"
elif [ -f $dir ]
then echo "$dir is not a directory"
fi
